package cevent.source.cloudcenter.server.dto;


import java.util.List;

/**
 * @author cevent
 * @description 权限资源管理表 模块传输层
 */
public class ResourcesDto {

    //唯一ID
    private String uniId;
    //资源名称|菜单/按钮
    private String name;
    //拦截页面|路由
    private String page;
    //请求|接口
    private String request;
    //父ID
    private String parentId;

    private Integer level;

    private Integer isShow;

    private Integer sort;

    //嵌套json数据，无限级tree结构
    private List<ResourcesDto> children;

    public String getUniId() {
        return uniId;
    }

    public void setUniId(String uniId) {
        this.uniId = uniId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<ResourcesDto> getChildren() {
        return children;
    }

    public void setChildren(List<ResourcesDto> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ResourcesDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", page='").append(page).append('\'');
        sb.append(", request='").append(request).append('\'');
        sb.append(", parentId='").append(parentId).append('\'');
        sb.append(", level=").append(level);
        sb.append(", isShow=").append(isShow);
        sb.append(", sort=").append(sort);
        sb.append(", children=").append(children);
        sb.append('}');
        return sb.toString();
    }
}
